package Command;

public class Client {
    public static void main(String[] args) {
        Order order1 = new Order();
        order1.setId(1);;
        order1.addFruitMap("梨子",1);
        order1.addFruitMap("苹果",2);
        order1.addFruitMap("橙子",3);

        Order order2 = new Order();
        order2.setId(2);;
        order2.addFruitMap("葡萄",2);
        order2.addFruitMap("香蕉",4);
        order2.addFruitMap("西红柿",3);


        Operator op = new Operator();
        OrderCommand cmd1 = new OrderCommand(op,order1);
        OrderCommand cmd2 = new OrderCommand(op,order2);

        WaiterInvoker waiter = new WaiterInvoker();
        waiter.addCommands(cmd1);
        waiter.addCommands(cmd2);

        waiter.OrderUp();
    }
}
